.class Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;
.super Ljava/lang/Object;
.source "TetheringProvisionActivity.java"

# interfaces
.implements Ljava/lang/Runnable;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/tecace/tetheringprovision/TetheringProvisionActivity;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;


# direct methods
.method constructor <init>(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)V
    .locals 0
    .parameter

    .prologue
    .line 1
    iput-object p1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;->this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    .line 527
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 6

    .prologue
    const/4 v5, 0x0

    .line 530
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;->this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    #calls: Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->CheckProvider()Z
    invoke-static {v1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->access$5(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Z

    move-result v1

    nop

    .line 531
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;->this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    #getter for: Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mDetectedFactorySIM:Z
    invoke-static {v1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->access$6(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Z

    move-result v1

    if-nez v1, :cond_0

    .line 532
    const-string v1, "TetheringProvision"

    const-string v2, "Entitlement verification skip for factory mode"

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 533
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;->this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    const/4 v2, -0x1

    #calls: Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V
    invoke-static {v1, v2}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->access$7(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;I)V

    .line 538
    :goto_0
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;->this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    invoke-virtual {v1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->finish()V

    .line 554
    :goto_1
    return-void

    .line 535
    :cond_0
    const-string v1, "TetheringProvision"

    const-string v2, "Activity terminating for SIM detection fail"

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 536
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;->this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    #calls: Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->sendResult(I)V
    invoke-static {v1, v5}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->access$7(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;I)V

    goto :goto_0

    .line 541
    :cond_1
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;->this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    #calls: Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->PingEntitledAPN()Z
    invoke-static {v1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->access$8(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Z

    move-result v1

    if-nez v1, :cond_2

    .line 542
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;->this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    #calls: Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->InsertEntitledAPN()I
    invoke-static {v1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->access$9(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)I

    .line 545
    :cond_2
    new-instance v0, Landroid/content/Intent;

    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;->this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    const-class v2, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$ShowVerifyingDialogATT;

    invoke-direct {v0, v1, v2}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 546
    .local v0, mVerifyingDialogIntent:Landroid/content/Intent;
    const/high16 v1, 0x1000

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 547
    const/high16 v1, 0x80

    invoke-virtual {v0, v1}, Landroid/content/Intent;->addFlags(I)Landroid/content/Intent;

    .line 548
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;->this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    invoke-virtual {v1, v0}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->startActivity(Landroid/content/Intent;)V

    .line 549
    const-string v1, "TetheringProvision"

    const-string v2, "Created verifying dialogbox"

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 551
    const-string v1, "TetheringProvision"

    new-instance v2, Ljava/lang/StringBuilder;

    const-string v3, "+++ startUsingNetworkFeature for mobile_cbs result : "

    invoke-direct {v2, v3}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    iget-object v3, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;->this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    #getter for: Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mConnectivityManager:Landroid/net/ConnectivityManager;
    invoke-static {v3}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->access$10(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Landroid/net/ConnectivityManager;

    move-result-object v3

    const-string v4, "enableCBS"

    invoke-virtual {v3, v5, v4}, Landroid/net/ConnectivityManager;->startUsingNetworkFeature(ILjava/lang/String;)I

    move-result v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-static {v1, v2}, Landroid/util/Log;->i(Ljava/lang/String;Ljava/lang/String;)I

    .line 552
    iget-object v1, p0, Lcom/tecace/tetheringprovision/TetheringProvisionActivity$2;->this$0:Lcom/tecace/tetheringprovision/TetheringProvisionActivity;

    #getter for: Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->mAuthenticationHandler:Landroid/os/Handler;
    invoke-static {v1}, Lcom/tecace/tetheringprovision/TetheringProvisionActivity;->access$11(Lcom/tecace/tetheringprovision/TetheringProvisionActivity;)Landroid/os/Handler;

    move-result-object v1

    const/4 v2, 0x0

    invoke-virtual {v1, v2}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    goto :goto_1
.end method
